			<div class="leftCont">
                <?php foreach ($this->listDanhMuc as $danhMuc) :?>
            	<div class="boxLeft">
                	<div class="danhmuc">
                    	<p><?php echo $danhMuc['name'];?></p>
                    </div><!--danhmuc-->
                    <div class="cc-boxLeft">
                    	<div class="productMenu">
                            <ul class="cap1">
                            <?php 
                            $totalSCate = count ($this->listSubCategory);
                            foreach ($this->listCategory as $Cate) {
                            	if ($danhMuc['id'] == $Cate['danhmuc_id']) {
                            		$i = 0; $j = 0;
                            		$flag = false;
                            		foreach ($this->listSubCategory as $SCate) {
                            			if ($Cate['id'] == $SCate['iddm'] && $SCate['name'] != '') {
                            				if ($i==0) {
                            					echo "<li><a href='#'>" . $Cate['name'] . "</a>" .
                            						 "<ul class='cap2'>";
                            				}
                            					echo "<li><a href='".WEB_LINK."/product/chi-tiet-san-pham-" . $SCate['danhmuc_id'] . "-" . $SCate['iddm'] . "-" . $SCate['id'] . "#content'>" . $SCate['name'] . "</a></li>";
                            				$i++;
                            			}
                            			if ($Cate['id'] == $SCate['iddm'] && $SCate['name'] == '') {
                            				$flag = true;
                            				echo "<li><a href='".WEB_LINK."/product/chi-tiet-san-pham-" . $SCate['danhmuc_id'] . "-" . $SCate['iddm'] . "-" . $SCate['id'] . "#content'>" . $Cate['name'] . "</a></li>";
                            			}
                            			if ($i > 0 && $j == $totalSCate - 1) {
                            				echo "</ul></li>";
                            			}
                            			$j++;
                            		}
                            	}
                            }
                            ?>
                            </ul>
                        </div><!--End .productMenu-->
                    </div><!--cc-boxLeft-->
                </div><!--boxLeft-->
                <?php endforeach;?>
                <?php if (count ($this->listKhuyenMai) > 0) :?>
                <div class="boxLeft">
                	<div class="khuyenmai">
                    	<p>Tin tức khuyến mãi</p>
                    </div><!--khuyenmai-->
                    <div class="cc-boxLeft">
                    	<div class="news">
                            <ul>
                            	<?php foreach ($this->listKhuyenMai as $kms) :?>
                                <li>
                                    <a href="<?php echo WEB_LINK . "/";?>chi-tiet-khuyen-mai-<?php echo $kms['id'];?>#content"><?php echo $kms['tieude'];?></a>
                                    <p><?php echo $kms['tomtat'];?></p>
                                </li>
                                <?php endforeach;?>
                            </ul>
                    	</div><!--news-->
                    </div><!--cc-boxLeft-->
                </div><!--boxLeft-->
                <?php endif;?>
                <?php if (count ($this->listImagequangcao) > 0) :?>
                <div class="qc-left" align="center">
                	<?php $countListImage = count ($this->listImagequangcao);?>
                	<?php $g=0; foreach ($this->listImagequangcao as $quangcao):?>
                	<a href="<?php echo $quangcao['url'];?>" target="_blank"><img width="230" src="<?php echo WEB_LINK . '/'. FunctionCommon::getImage('img-the', $quangcao['code']);?>" border="0"/></a><br><?php if($g<$countListImage-1){?><hr style="width:230px;"><?php }else{echo "<br>";}?>
                	<?php $g++; endforeach;?>
                </div><!--qc-left-->
                <?php endif;?>
                <div class="boxLeft">
                	<div class="thongke">
                    	<p>Thống kê truy cập</p>
                    </div><!--thongke-->
                    <div class="cc-boxLeft">
                    	<div class="histats" align="center">
                    		<iframe src="<?php echo WEB_LINK . "/histart.php";?>" width="196" height="54" style="border:0px;"></iframe>
                    	</div><!--histats-->
                    </div><!--cc-boxLeft-->
                </div><!--boxLeft-->
            </div><!--leftCont-->